import request from '@/utils/http.js'

// 生成-订单(结算页)
export const getCheckInfoAPI = () => {
	return request({
		url: '/member/order/pre'
	})
}

// 修改-收货地址
export const updateAddressAPI = (id, data) => {
	return request({
		url: `/member/address/${id}`,
		method: 'PUT',
		data
	})
}

// 提交-订单
export const createOrderAPI = (data) => {
	return request({
		url: '/member/order',
		method: 'POST',
		data
	})
}
